SUMMARY = "CH9344"
DESCRIPTION = "driver for CH9344."
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit module

SRC_URI = " \
	file://ch9344.c \
	file://ch9344.h \
	file://Makefile \
	"
	
S = "${WORKDIR}"

DEPENDS = "virtual/kernel"

EXTRA_OEMAKE = "KERNELDIR=${STAGING_KERNEL_BUILDDIR}"

do_install () {
    install -d ${D}/lib/modules/${KERNEL_VERSION}/extra
    install -m 0755 ${B}/ch9344.ko ${D}/lib/modules/${KERNEL_VERSION}/extra/ch9344.ko
}